package com.example.book.service;

import com.example.book.model.Book;
import com.example.book.model.Member;
import com.example.book.model.Order;
import com.example.book.model.OrderBookUnion;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface BookService {
    /**
     * 添加会员
     * @param member
     * @return
     */
    public void addMember(Member member);

    /**
     * 提交订单
     * @param order
     */
    public void insertOrder(Order order);


    /**
     * 查询订单
     * 支持全查 根据会员ID 订单ID 的定向查
     * @return
     */
    public List<Order> qryOrders(Map<String,String> map);


    /**
     * 查询书籍数据
     *
     * @param bookId
     * @return
     */
    public List<Book> qryBook(String bookId);

    /**
     * 多个id查询书籍
     * @param bookId
     * @return
     */
    public List<Book> qryBooks(String[] bookId);


}
